<script setup>
import { ref, reactive, computed, onMounted } from "vue";
onMounted(() => {
  // 使用window.onload确保所有资源加载完成后执行跳转
  window.onload = () => {
    redirectToLink();
  };
});
const redirectToLink = () => {
  window.location.href = "https://hourse.onelink.me/g1Pu/dx6ic4k8";
};
</script>
<!-- ./assets/logo.svg -->

<template>
  <div class="main" id="myButton">
    <div style="height: 152px">
      <div
        style="
          display: flex;
          padding: 20px 20px 0 0;
          flex-direction: column;
          align-items: end;
        "
      >
        <img class="logo" src="./assets/logo.png" alt="logo" />
        <img class="logo" src="./assets/meboo.png" />
        <!-- <p class="meboo">Meboo</p> -->
      </div>

      <img class="arrow" src="./assets/arrow.png" />
      <img class="dialogue" src="./assets/dialogue.png" />
      <img class="banana" src="./assets/banana.png" />
    </div>

    <div style="display: flex">
      <div style="position: relative; margin-left: 6px">
        <img class="video" src="./assets/video.png" />
        <p class="inst">Instantly</p>
        <p class="inst resp">Respond</p>
        <p class="limit">No limited</p>
      </div>
      <div style="position: relative">
        <img class="phone" src="./assets/phone.png" />
        <img class="finger" src="./assets/finger.gif" />
      </div>
    </div>
    <div style="height: 28px; position: relative">
      <img class="mouth" src="./assets/mouth.png" />
    </div>

    <div style="position: relative; height: 147px">
      <img class="face" src="./assets/face.png" />
      <p class="hey">Hey, wanna chat?</p>
    </div>
    <div style="height: 80px; text-align: center">
      <img class="with" src="./assets/with.png" />
    </div>
  </div>
</template>

<style scoped>
@font-face {
  font-family: "InterBold";
  src: url("/font/Inter-Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
.main {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: url("./assets/bg.jpg") no-repeat center center fixed;
  background-size: cover;
  width: 100%;
  height: auto;
  min-height: 100vh;
}

main {
  width: 100%;
}
.finger {
  width: 126px;
  position: absolute;
  bottom: -31px;
  right: 0;
  z-index: 999;
}

.logo {
  width: 16vw;
}

.arrow {
  width: 74px;
  position: absolute;
  top: 54px;
  right: 112px;
}
.dialogue {
  position: absolute;
  width: 33vw;
  top: 50px;
}
.banana {
  position: absolute;
  width: 17vw;
  left: 116px;
  margin-top: -13px;
}
.phone {
  width: 52vw;
  margin-left: 4px;
  margin-right: 4px;
}
.video {
  width: 100%;
  margin-top: 59px;
  margin-bottom: 16px;
}

.inst {
  color: #231e22;
  font-family: InterBold;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  margin-top: 8px;
}
.resp {
  background: linear-gradient(47deg, #ef39f1 4.98%, #f1397b 96.86%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.limit {
  width: 96%;
  bottom: 22px;
  position: absolute;
  border-radius: 20px;
  background: linear-gradient(91deg, #e935b1 0.28%, #b53cee 99.79%);
  height: 112px;
  color: #fff;
  font-family: InterBold;
  text-align: center;
  font-size: 28px;
  padding: 30px 0;
}
.mouth {
  width: 34vw;
  left: 112px;
  top: -76px;
  position: absolute;
  z-index: 1;
}
.face {
  width: 34vw;
  position: absolute;
  left: -5px;
  top: 9px;
  z-index: 1;
}
.hey {
  width: 65vw;
  border-radius: 30px;
  background: linear-gradient(91deg, #e935b1 0.28%, #b53cee 99.79%);
  color: #fff;
  height: 112px;
  text-align: center;
  font-family: InterBold;
  font-size: 32px;
  line-height: normal;
  padding: 14px;
  position: absolute;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.with {
  width: 66vw;
}
</style>
